#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QDebug>
#include <QPropertyAnimation>
#include <QTimer>

class myPushButton : public QPushButton
{
    Q_OBJECT
public:
//    explicit myPushButton(QWidget *parent = nullptr);

    myPushButton(QString nromalImg,QString pressImg="");

    void jumpup();
    void jumpdown();

    QString m_normalImgPath;
    QString m_pressImgPath;

    void mousePressEvent(QMouseEvent* e);
    void mouseReleaseEvent(QMouseEvent* e);

signals:

};

#endif // MYPUSHBUTTON_H
